<template>
    <div class="container">
        <div class="header">
            <!-- 时间 、 语言 -->
            <div class="topLeft">
                <div class="time">
                    <topTime></topTime>
                    <LangChange></LangChange>
                </div>
                <div class="language"></div>
            </div>
            <div class="topRight">

                <!-- <mySecondaryFrame direction="right">
                    <template v-slot:header>
                        <span> {{ getUserName }}</span>
                    </template>
<template v-slot:footer>
                        1131312恶趣味
                    </template>
</mySecondaryFrame> -->

                <!-- 账户 -->
                <myUsername></myUsername>

                <!-- <svg class="top_header_icon">
                    <use xlink:href="#icon-jiantou_liebiaoshouqi_o"></use>
                </svg>
                <svg class="top_header_icon">
                    <use xlink:href="#icon-jiantou_liebiaoshouqi_o"></use>
                </svg>
                <svg class="top_header_icon">
                    <use xlink:href="#icon-jiantou_liebiaoshouqi_o"></use>
                </svg>
                <svg class="top_header_icon">
                    <use xlink:href="#icon-jiantou_liebiaoshouqi_o"></use>
                </svg> -->
            </div>
        </div>
    </div>
</template>

<script>
import topTime from '@/components/myHome/myBeiJingTime'
import LangChange from '@/components/myHome/myLangChange'
import myUsername from '@/components/myHome/myUsername'
export default {
    name: "myNav",
    components: {
        topTime,
        LangChange,
        myUsername
    },
    data() {
        return {

        }
    },
    computed: {
        getUserName() {
            return localStorage.getItem('username') || 'admin'
        }
    },
    methods: {

    }
}
</script>

<style scoped lang="scss">
.container {
    height: 50px;
    // line-height: 50px;
    // min-width: 100%;
    width: 100%;
    background-color: #f5f5f5;

    .header {
        margin: 0 auto;
        min-width: 1190px;
        width: 90%;

        .topLeft {
            float: left;
        }

        .topRight {
            height: 50px;
            line-height: 50px;
            float: right;
            display: flex;
        }
    }
}
</style>